package org.coc.iot.service;


import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.coc.iot.entity.SysRoleMenu;
import org.coc.iot.mapper.SysRoleMenuMapper;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * @Description:实现类
 * @author 
 * @version 1.0
 * @created 
 */
@Service
public class SysRoleMenuService extends BaseService<SysRoleMenu, SysRoleMenuMapper> implements InitializingBean {

	@Autowired
	private SysRoleMenuMapper sysRoleMenuMapper;
	
	public void afterPropertiesSet() throws Exception {
		this.setBaseMapper(sysRoleMenuMapper);
	}

	/**
	 *
	 * @param param
	 */
	public void deleteSysRoleMenuByRoleId(Map<String, Object> param) {
		sysRoleMenuMapper.deleteSysRoleMenuByRoleId(param);
	}

	/**
	 *
	 * @param list
	 */
	public void insertRoleMenuBatch(List<SysRoleMenu> list) {
		sysRoleMenuMapper.insertRoleMenuBatch(list);
	}

}
